<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<% String path = request.getContextPath();%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<h2 class="hometitle"><span><a href="/jstt/bj/">心得笔记</a></h2>
<c:forEach items="${requestScope.pageInfo.list}" var="journal" varStatus="stat">
    <div class="single-candidate-list">
        <div class="main-comment">
            <div class="candidate-image">
                <img src="${pageContext.request.contextPath}/web/uploadImages/${journal.userinfo.pic}">
            </div>

            <div class="candidate-text">
                <div class="candidate-info">
                    <p>
                        <i class="fa fa-user"><img src="<%=path%>/web/static/img/user.png"></i> <a
                            href="/note/wangxvfang/home"
                            target="_blank">${journal.userinfo.username}</a> <i
                            class="fa fa-clock-o"><img src="<%=path%>/web/static/img/newsbg01.jpg"></i><fmt:formatDate
                            value="${journal.inputTime}" pattern="y-MM-dd HH:mm:ss"></fmt:formatDate>
                    </p>
                </div>

                <div class="candidate-text-inner wm-note-content">
                    <c:if test="${empty journal.pics}" var="pic">
                        <div class="wm-note-content-left">

                            <div class="candidate-title">
                                <h3>
                                    <a
                                            href="/note/wangxvfang/job/04c94bfe886c4fbe89d317c641aa774b.html"
                                            target="_blank"> ${journal.title} </a>
                                </h3>
                            </div>

                            <p>${journal.info}</p>
                        </div>

                        <div class="wm-note-content-right">
                            <img src="<%=path %>/web/userinfo/img/journalImages/${journal.pics}"
                                 alt="blog">
                        </div>
                    </c:if>
                    <c:if test="${not pic}">
                        <div>

                            <div class="candidate-title">
                                <h3>
                                    <a
                                            href="${pageContext.request.contextPath}/web/blogger/blogs?id=${journal.id}"
                                            target="_blank"> ${journal.title} </a>
                                </h3>
                            </div>

                            <p>${journal.info}</p>
                        </div>
                    </c:if>
                </div>

                <div class="candidate-text-bottom">
                    <div class="candidate-text-box">
                        <p title="浏览数">
                            <i class="fa fa-eye"><img src="<%=path%>/web/static/img/newsbg.jpg"></i>
                            <span> (${journal.browseCount})
												</span>
                        </p>
                        <p title="评论数">
                            <i class="fa"><img src="<%=path%>/web/static/img/newsbg.png"/></i><span>
													(${journal.commentCount}) </span>
                        </p>
                        <p title="点赞数" class="open-icon">
                            <i class="fa fa-thumbs-o-up"><img src="<%=path%>/web/static/img/heart.png"></i>
                            <span>(${journal.likeCount})</span>
                        </p>

                    </div>
                </div>


                <div class="wm-like-list">

                </div>
            </div>
        </div>
    </div>
    <!-- End Single Candidate List -->

</c:forEach>

<div class="pagelist pagelist1" >
<%--    </a>&nbsp;&nbsp;<a href="/jstt/index.html">首页</a>&nbsp;--%>
<%--    <a href="/jstt/index.html">上一页</a>&nbsp;--%>
    <c:forEach begin="1" end="${requestScope.pageInfo.pages}" var="i">
        <c:if test="${requestScope.pageInfo.pageNum eq i}" var="isCur">
            <a href="#" data-id="${i}" class="current">${i}</a>&nbsp;
        </c:if>
        <c:if test="${not isCur}">
            <a href="#" data-id="${i}">${i}</a>
        </c:if>
    </c:forEach>
<%--    <a href="/jstt/index_3.html">下一页</a>&nbsp;--%>
<%--    <a href="/jstt/index_6.html">尾页</a>--%>
</div>

